package com.cm.caseManagement.dao;

import com.cm.caseManagement.pojo.entity.CmSysAttachment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 附件Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Mapper
public interface CmSysAttachmentMapper
{
    /**
     * 查询附件
     *
     * @param id 附件主键
     * @return 附件
     */
    public CmSysAttachment selectCmSysAttachmentById(Long id);

    /**
     * 查询附件列表
     *
     * @param cmSysAttachment 附件
     * @return 附件集合
     */
    public List<CmSysAttachment> selectCmSysAttachmentList(CmSysAttachment cmSysAttachment);

    /**
     * 新增附件
     *
     * @param cmSysAttachment 附件
     * @return 结果
     */
    public int insertCmSysAttachment(CmSysAttachment cmSysAttachment);

    /**
     * 修改附件
     *
     * @param cmSysAttachment 附件
     * @return 结果
     */
    public int updateCmSysAttachment(CmSysAttachment cmSysAttachment);

    /**
     * 删除附件
     *
     * @param id 附件主键
     * @return 结果
     */
    public int deleteCmSysAttachmentById(Long id);

    /**
     * 批量删除附件
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmSysAttachmentByIds(Long[] ids);
}
